﻿using System.Runtime.Serialization;
using LiSA_Server.Base.AbstractContracts;
using LiSA_Server.Base.Factories;
using LiSA_Service.Users.Actioners;

namespace LiSA_Service.Users.Dto.Queries
{
    [DataContract]
    public class AllUsersQuery:Query
    {
        public override QueryResult Execute()
        {
            return new AllUsersQueryResult
            {
                Users = ActionerFactory.Instance.Get<UserActioner>().GetAllUsers()
            };
        }
    }
}